package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 订单实例
 */
public class OrderBean {
    /**编号*/
    private int id;
    /**下单时间*/
    private LocalDate orderDate= LocalDate.now();
    /**状态*/
    private String state="未进行";
    /**收货人姓名*/
    private String acceptName;
    /**收货地址*/
    private String orderAddress;
    /**收货人电话*/
    private String acceptTel;
    /**订单店铺*/
    private StoreBean storeName;
    /**订单总价*/
    private int orderAllPrice;
    /**订单类别*/
    private String orderType;
    /**商品订单明细*/
    private List<OrderProductBean> productList;
    /**服务订单明细*/
    private OrderServiceBean service;
    /**下单人*/
    private UserBean user;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public LocalDate getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(LocalDate orderDate) {
        this.orderDate = orderDate;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getAcceptName() {
        return acceptName;
    }

    public void setAcceptName(String acceptName) {
        this.acceptName = acceptName;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }

    public String getAcceptTel() {
        return acceptTel;
    }

    public void setAcceptTel(String acceptTel) {
        this.acceptTel = acceptTel;
    }

    public StoreBean getStoreName() {
        return storeName;
    }

    public void setStoreName(StoreBean storeName) {
        this.storeName = storeName;
    }

    public int getOrderAllPrice() {
        return orderAllPrice;
    }

    public void setOrderAllPrice(int orderAllPrice) {
        this.orderAllPrice = orderAllPrice;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public List<OrderProductBean> getProductList() {
        return productList;
    }

    public void setProductList(List<OrderProductBean> productList) {
        this.productList = productList;
    }

    public OrderServiceBean getService() {
        return service;
    }

    public void setService(OrderServiceBean service) {
        this.service = service;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "id=" + id +
                ", orderDate=" + orderDate +
                ", state='" + state + '\'' +
                ", acceptName='" + acceptName + '\'' +
                ", orderAddress='" + orderAddress + '\'' +
                ", acceptTel='" + acceptTel + '\'' +
                ", storeName=" + storeName +
                ", orderAllPrice=" + orderAllPrice +
                ", orderType='" + orderType + '\'' +
                ", productList=" + productList +
                ", service=" + service +
                ", user=" + user +
                '}';
    }
}
